package com.google.code.bigyang.filter.impl;

import com.google.code.bigyang.base.Handler;
import com.google.code.bigyang.base.Session;
import com.google.code.bigyang.filter.NextFilter;
import com.google.code.bigyang.nio.NioSession;

public class TailFilter  extends FilterAdapter {

	@Override
	public void messageReceived(NextFilter nextFilter, Session session,Object message) throws Exception {
		NioSession sess = (NioSession)session;
		Handler handler = sess.getHanlder();
		handler.onHanlder(session);
	}

	@Override
	public void messageSent(NextFilter nextFilter, Session session,Object message) throws Exception {
		// TODO Auto-generated method stub
		super.messageSent(nextFilter, session, message);
	}
}
